﻿using Furion.DatabaseAccessor;
using iWare.Wms.Core.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace iWare.Wms.Core
{
    public class v_AccessDetails: EntityNotKey
    {
        /// <summary>
        /// 配置视图名
        /// </summary>
        public v_AccessDetails() : base("view_AccessDetails") { }

        /// <summary>
        /// 任务号
        /// </summary>
        public string TaskNo { get; set; }

        /// <summary>
        /// 任务方式
        /// </summary>
        public TaskModel TaskModel { get; set; }

        /// <summary>
        /// 任务类型
        /// </summary>
        public TaskType TaskType { get; set; }

        /// <summary>
        /// 任务级别
        /// </summary>
        public int TaskLevel { get; set; }

        /// <summary>
        /// 任务状态 字典 未执行，执行中，完成
        /// </summary>
        public Enum.TaskStatus TaskStatus { get; set; }

        /// <summary>
        /// 起始库位
        /// </summary>
        public string SourcePlace { get; set; }

        /// <summary>
        /// 目标库位
        /// </summary>
        public string ToPlace { get; set; }

        /// <summary>
        /// 托盘ID  外键表
        /// </summary>
        public long? ContainerId { get; set; }

        /// <summary>
        /// 托盘编码
        /// </summary>
        public string ContainerCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 物料编号
        /// </summary>
        public string MaterialNo { get; set; }

        /// <summary>
        /// 物料批次
        /// </summary>
        public string MaterialBatch { get; set; }

        /// <summary>
        /// 物料规格
        /// </summary>
        public string MaterialSpec { get; set; }

        /// <summary>
        /// 物料ID 
        /// </summary>
        public long? MaterialId { get; set; }

        /// <summary>
        /// 组盘数量
        /// </summary>
        public decimal? BindQuantity { get; set; }

        /// <summary>
        /// 组盘状态
        /// </summary>
        public CommonStatus? BindStatus { get; set; }

        public long ?Id { get; set; }
    }
}
